<?php


namespace app\admin\model\base;


use app\BaseModel;

class StudentRanking extends BaseModel
{
    /**
     * 关联学生
     */
    public function student(){
        return $this->hasOne(Student::class,'id','student_id')->field('realname,id');
    }
}